/**
 * 
 */
package info.niwota.commons;

import android.content.Context;
import android.content.pm.ApplicationInfo;


/**
 * @author qiangli
 * 
 */
public final class Hotweb {

	private Hotweb() {
	}

	public static boolean isDebug() {
		return Debug.DEBUG;
	}

	public static void setDebug(boolean debug) {
		Debug.DEBUG = debug;
	}
	
	/**
	 * 
	 * @param ctx
	 *            Application context
	 * @return ApplicationInfo.packageName
	 */
	public static String getPkgName(Context ctx) {
		ApplicationInfo ai = ctx.getApplicationInfo();
		return ai.packageName;
	}
}
